<?
require(PATH_CLASS."model.php");
class Table extends Model{
	
	/*public function setButtonControlTable(){
		$arrayButton = array(
							"btn_save"=>array(
												"บันทึกข้อมูล",
												"submit"
											),
							"btn_close"=>array(
												"ออก",
												"button",
												"loadTab(".$this->tab.",'testModel','view')"
											)
							);
		//parent::setModelButtonControlTable($arrayButton);
	}*/
	
	public function setDivInnerID(){
		parent::setModelDivInnerID('mm');
	}
	
	public function setPagination(){
		parent::setModelNumberPageScope(2);
		parent::setModelNumberTableScope(3);
	}
	
	public function setHeader(){
		$array1 = array("about_id"=>"รหัสความเกี่ยวข้อง","about_name"=>"ชื่อความเกี่ยวข้อง","cc"=>"ดูข้อมูล","aa"=>"แก้ไขข้อมูล","bb"=>"ลบข้อมูล");
		parent::setModelHeader($array1);
	}
	
	public function setColumn(){
		$array2 = array("about_id"=>"text","about_name"=>"text","cc"=>"view","aa"=>"edit","bb"=>"delete");
		parent::setModelColumn($array2);
	}	
	
	public function setLinkJavascript(){
		$array3 = array("aa"=>"functionJavascript","bb"=>"xxx","cc"=>"mmm");
		parent::setModelLinkJavascript($array3);
	}
	
	public function setParamLinkJavascript(){
		$array4 = array("aa"=>array("about_id","about_name"),"bb"=>array("about_id"),"cc"=>array("about_id"));
		parent::setModelParamLinkJavascript($array4);
	}
	
	public function setSQLTable(){
		$array3 = "select about_id, about_name, about_id as cc, about_id as aa, about_id as bb from test_tb ";
		parent::setModelSQLTable($array3);
	}
}
?>

